package com.rustic.server.query;

import cn.xy.base.server.bean.IPage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 表[restaurant]对应Query查询类
 *
 * @author auto
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RestaurantAdminListQuery extends IPage {

    /**
     * 自增ID
     */
    @ApiModelProperty(value = "自增ID", dataType = "Integer")
    private Integer id;

    /**
     * 餐厅名称
     */
    @Length(min = 0, max = 100, message = "餐厅名称长度为0-100个字符")
    @ApiModelProperty(value = "餐厅名称", dataType = "String")
    private String name;

    /**
     * 餐厅地址
     */
    @Length(min = 0, max = 500, message = "餐厅地址长度为0-500个字符")
    @ApiModelProperty(value = "餐厅地址", dataType = "String")
    private String address;

    /**
     * 餐厅详细地址
     */
    @Length(min = 0, max = 500, message = "餐厅详细地址长度为0-500个字符")
    @ApiModelProperty(value = "餐厅详细地址", dataType = "String")
    private String detailedAddress;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "开始创建时间(yyyy-MM-dd HH:mm)", dataType = "Date")
    private Date startCreateTime;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @ApiModelProperty(value = "结束创建时间(yyyy-MM-dd HH:mm)", dataType = "Date")
    private Date endCreateTime;

}
